package com.eiei.db.dao;

import java.sql.Connection;
import java.util.List;

import com.eiei.bean.MessageBean;

/**
 * 消息的数据接入层
 * @author eiei
 *
 */
public interface MessageBeanDao {

	boolean save(MessageBean message,Connection con) throws Exception;
	
	/**
	 * 从第几条到第几条获取全部数据
	 * @param fristIndex
	 * @param endIndex
	 * @param cons
	 * @return
	 */
	List<MessageBean> list(Integer fristIndex,Integer size,Connection cons) throws Exception;
	
	public void updateStat(List<String> ids,Connection con) throws Exception;
	
	public int countUnRead(Connection con) throws Exception;

}
